package storage

import (
	"github.com/lostvip-com/lv_framework/lv_db"
	"main/internal/zodiac/models"
)

type MySqlRateHistoryRepository struct {
}

var _ RateHistoryRepository = (*MySqlRateHistoryRepository)(nil)

func (r *MySqlRateHistoryRepository) SaveRateHistory(history []models.RateHistory) error {
	_ = lv_db.GetMasterGorm().CreateInBatches(history, len(history))
	return nil
}

func (r *MySqlRateHistoryRepository) SaveOrUpdateHistory(history []models.RateHistory) error {
	//TODO implement me
	panic("implement me")
}
